﻿using BussinessObject.ObjectTwo;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectHK3.ObjectTwo
{
    public partial class OrderList1 : System.Web.UI.Page
    {
        B_LoadDrop ex = new B_LoadDrop();
        DataTable tb = new DataTable();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {                
                loadData();
            }

        }
        public void loadData()
        {
            DropDownList3.DataSource = ex.service();
            DropDownList3.DataTextField = "SERVICE_NAME";
            DropDownList3.DataValueField = "SERVICE_ID";
            DropDownList3.DataBind();

            DropDownList1.DataSource = ex.Bran();
            DropDownList1.DataTextField = "BRANCH_NAME";
            DropDownList1.DataValueField = "BRANCH_ID";
            DropDownList1.DataBind();

            DropDownList4.DataSource = ex.service();
            DropDownList4.DataTextField = "SERVICE_NAME";
            DropDownList4.DataValueField = "SERVICE_ID";
            DropDownList4.DataBind();

            DropDownList2.DataSource = ex.Bran();
            DropDownList2.DataTextField = "BRANCH_NAME";
            DropDownList2.DataValueField = "BRANCH_ID";
            DropDownList2.DataBind();

           
        }
        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {

        }

        protected void _lbtDelete_Command(object sender, CommandEventArgs e)
        {

        }

        protected void _lbtDetails_Command(object sender, CommandEventArgs e)
        {

        }
    }
}